package com.schoolComments.mapper;

import com.schoolComments.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 */
@Repository
public interface BlogMapper extends BaseMapper<Blog> {

    Blog queryBlogByBlogId(@Param("id") Long id);
    List<Blog> queryBlogsByIds(@Param("ids") Long[] ids);

    Integer updateLike(@Param("id") Long id, @Param("count") int count);

    List<Blog> queryBlogsById(@Param("id") Long id);

    List<Blog> queryMyBlog(@Param("id") Long id);

    List<Blog> queryHotBlog();

    Integer insertOne(Blog blog);
}
